package com.mgkj.service;

import com.alibaba.fastjson.JSONObject;
import com.mgkj.common.result.Result;
import com.mgkj.dto.*;
import com.mgkj.dto.yf.CoptnoDto;
import com.mgkj.dto.yf.InitSalesSlipDto;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author yyyjcg
 * @date 2024/4/15
 * @Description
 */
public interface SaleService {
//===============================================================易飞接口代码=====================================================//
    Result salesSlipByOrder(InitSalesSlipDto initSalesSlipDto) throws IOException;
    List<Map<String, Object>> getCustomOrder(String startTime, String endTime, String company);




//====================================================================E10接口代码====================================================//
    Result ListSaleOrderOutStock(ListSaleOrderOutStockDto dto);

    Result ListSaleOrderOutStockDetail(String docNo);

    Result ListNoticeOutStock(ListNoticeOutStockDto dto);

    Result ListNoticeOutStockDetail(String docNo);

//    MiddleReturnDto OtherOutStockInsertMiddleTable(List<NoticeOutStockSubmitDto> list);

    JSONObject OtherOutStockSubmit(MiddleReturnDto middleReturnDto);

    Result ListSaleReturn(ListSaleReturnDto dto);

    Result ListSaleReturnDetail(String docNo);

    MiddleReturnDto SaleReturnInsertMiddleTable(List<SaleReturnSubmitDto> list);

    JSONObject SaleReturnSubmit(MiddleReturnDto middleReturnDto);

    MiddleReturnDto SaleOutStockInsertMiddleTable(List<SaleOutStockDto> list);
    JSONObject SaleOutStockSubmit(MiddleReturnDto middleReturnDto);

    MiddleReturnDto SaleOrderOutStockInsertMiddleTable(List<SaleOrderOutDto> list);
    JSONObject SaleOrderOutStockSubmit(MiddleReturnDto middleReturnDto);


    List<Map<String, Object>> getCoptno(CoptnoDto dto);
}
